<?php

namespace Common\Model;

use Think\Model;

class CompanyModel extends Model {

    public $_validate = array(
        array('company_id', 'require', '课时id不能为空', self::MUST_VALIDATE, '', self::MODEL_UPDATE),
        array('company_name', 'require', '企业名称不能为空', self::MUST_VALIDATE),
    );
    public $_auto = array(
        array('create_time', 'format_time', self::MODEL_INSERT, 'function'),
        array('update_time', 'format_time', self::MODEL_UPDATE, 'function'),
    );

}
